var onloadHandler = {
    onloadFunction : function() {
        if (document.getElementById('blog') ) {
            XMLRSS.RSSRequestObject = XMLRSS.GetXmlHttpObject();
            XMLRSS.init();
            window.setInterval("XMLRSS.update_timer()", 1200000);
        }
        
        if (document.getElementById('menu1')) {
            menuHandler.onloadfunction();
        }
        
        if (document.getElementById('domfx')) {
            DOMfx.init();
        }
        
        if (document.getElementById('Carousel')) {
            carr.init();
        }
        
        if (document.getElementById('find')) {
            find.init();
        }
    },
    
    onunloadFunction : function() {
        if (document.getElementById('menu1') && menuHandler.persistmenu == "yes" && document.getElementById) {
            menuHandler.savemenustate();
        }
    }
};

if (window.addEventListener) {
    window.addEventListener("load", onloadHandler.onloadFunction, false);
    window.addEventListener("unload", onloadHandler.onloadFunction, false);
} else if (window.attachEvent) {
    window.attachEvent("onload", onloadHandler.onloadFunction);
    window.attachEvent("onunload", onloadHandler.onunloadFunction);
} else if (document.getElementById) {
    window.onload = onloadHandler.onloadFunction;
    window.onunload = onloadHandler.onunloadFunction;
}